package com.xplay.xpocker.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.xplay.xpocker.entity.GameRuMahjongFraction;
import com.xplay.xpocker.mapper.GameRuMahjongFractionMapper;
import com.xplay.xpocker.service.GameRuMahjongFractionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xplay
 * @since 2024-04-14
 */
@Service
public class GameRuMahjongFractionServiceImpl extends ServiceImpl<GameRuMahjongFractionMapper, GameRuMahjongFraction> implements GameRuMahjongFractionService {

    @Override
    public void cleanByUserId(BigDecimal uid) {
        remove(Wrappers.<GameRuMahjongFraction>lambdaQuery().eq(GameRuMahjongFraction::getSourceUserId, uid));
    }
}
